(function () {
  let myChart = echarts.init(document.querySelector(".column:nth-of-type(3) .box:nth-of-type(1)"));

  let option = {
    title: {
      text: "锋团城市占比",
      left: "center",
    },
    tooltip: {
      trigger: "item",
    },
    legend: {
      orient: "vertical",
      left: "left",
    },
    series: [
      {
        name: "Access From",
        type: "pie",
        radius: "50%",
        data: [
          { value: 1048, name: "南京" },
          { value: 735, name: "北京" },
          { value: 580, name: "上海" },
          { value: 484, name: "广州" },
          { value: 300, name: "深圳" },
        ],
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: "rgba(0, 0, 0, 0.5)",
          },
        },
      },
    ],
  };
  //# 使用刚指定的配置项和数据显示图表
  myChart.setOption(option) 

  window.addEventListener('resize', () => {
      myChart.resize()
  })
})();
